package com.lu.common.log.annotation;

import com.lu.common.log.enums.BusinessType;
import com.lu.common.log.enums.OperatorType;

import java.lang.annotation.*;

/**
 * @program LuCloud-RuoYi
 * @description: 日志注解
 * @author: zhanglu
 * @create: 2020-06-30 20:15:00
 */
@Target({ ElementType.PARAMETER, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {

    //模块
    String title() default "";

    //功能
    BusinessType businessType() default BusinessType.OTHER;

    //操作人类别
    OperatorType operatorType() default OperatorType.MANAGE;

    //是否保存请求的参数
    boolean isSaveRequestData() default true;

}
